package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationCountVo;
import com.zzyl.vo.ReservationVo;

import java.util.List;
import java.util.Map;

public interface CustomerReservationService {
    Integer getCancelledCount();

    /**
     * 查询每个时间段剩余预约次数
     * @param time
     * @return
     */
    List<ReservationCountVo> getCountByTime(Long time);

    /**
     * 新增预约
     * @param reservationDto
     */
    void save(ReservationDto reservationDto);

    /**
     * 分页查询预约
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    PageResponse<ReservationVo> list(Integer pageNum, Integer pageSize, Integer status);

    /**
     * 取消预约
     * @param id
     */
    void cancel(Long id);
}
